
public class Demo {
    public static void main(String[] args){
        Time time = new Time(946655999L,"2018-10-29                23:11:02");
        time.getTS();
        time.getDate();
        time.toTS();
        time.toDate();
        time.getTimeDifference();
        System.out.print("\n");
        time.setDate("8120-11-11 11:20:30");
        time.setTS(64060809999L);
        time.getTS();
        time.getDate();
        time.toTS();
        time.toDate();
        time.getTimeDifference();
        System.out.print("\n");
        time.setDate("8120-13-11 13333:20:30");
        time.setTS(640605599988888889L);
        time.getTS();
        time.getDate();
    }
}
